/*
 * @Author: Starfish_DL
 * @Date: 2020-10-07 20:42:55
 * @LastEditors: Starfish_DL
 * @LastEditTime: 2020-10-08 00:32:47
 * @CurrentVersion: 1.0
 * @Description: 
 */

public class Person {
    protected String name="person";
    protected int age=50;
    protected char sex;
    public Person(String name,int age,char sex) {
        this.name=name;
        this.age=age;
        this.sex=sex;
    }
    public String getInfo() {
        return "Name: "+ name + "\n" +"age: "+ age;
    }
    public String toString() {
        return this.name+" "+this.age+" "+this.sex;
    }
}